package com.java123.demo;

public class TestBook {

	public static void main(String[] args) {
		// static
		// 1、static修饰的成员（变量、方法等），可以直接类名打点调用，无需new对象；
		// 2、static修饰的成员，是当前类所有对象共享的；
		Book.mark = "我是新的mark";
		Book b = new Book();
		b.name = "钢铁";
		System.out.println(b.name + ",mark:" + Book.mark);

		
		Book.mark = "我是新的mark1";
		Book b1 = new Book();
		System.out.println(b1.name + ",mark:" + Book.mark);
		
		Teacher te = new Teacher();
		Integer result = te.teach(1,2);
		
	}
}
